#!/user/bin/env python3
# -*- coding: utf-8 -*-
# author:YaFans

#求100内奇数和


result = 0
for i in range(1,101,2):
    result += i

print(result)



########

result = []
for i in range(1,101):
    if i % 2 == 1:
        result.append(i)

print(sum(result))

# 做得不错，可以利用多种方法
